#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 20px;
  background-color: #f5f7fa;
  border-bottom: 1px solid #e4e7ed;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 28px;
  margin: 0 0 15px 0;
  text-align: center; /* 标题居中 */
}



.section-title {
  margin: 6px 0;
  display: block;
}

.button-group {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.pagination-container {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

.right-aligned-buttons {
  display: flex;
  gap: 10px;
  margin-left: auto; /* 利用flex布局，使该部分靠右 */
}

.custom-button {
  padding: 8px 15px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background-color: #fff;
  color: #606266;
  cursor: pointer;
  transition: all 0.3s;
}

.custom-button:hover {
  background-color: #f5f7fa;
}

.main-content {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.short-select {
  width: 120px; /* 或其他你想要的宽度 */
}

.sidebar {
  width: 200px;
  background-color: #f5f7fa;
  border-right: 1px solid #e4e7ed;
  transition: width 0.3s;
  overflow: hidden;
  position: relative;
}

.sidebar-collapsed {
  width: 50px;
}

.sidebar-content {
  padding: 15px;
  white-space: nowrap;
}

.task-container {
  flex: 1;
  padding: 20px;
  overflow-y: auto; /* 添加垂直滚动条 */
  max-height: calc(100vh - 200px); /* 限制最大高度，确保底部的分页控件可见 */
}

.task-section {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  padding: 15px;
}

.task-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.left-group {
  display: flex;
  align-items: center;
  gap: 8px; /* 复选框和标题之间的间距 */
}

.toggle-button {
  background: none;
  border: none;
  cursor: pointer;
  color: #606266;
  padding: 4px;
  margin-left: 4px;
  transition: all 0.3s;
}

.toggle-button:hover {
  color: #409eff;
}

.recording-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.recording-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 4px;
  background-color: #fafafa;
  transition: background-color 0.3s;
}

.recording-item:hover {
  background-color: #f5f7fa;
}

.progress-bar {
  height: 10px;
  background-color: #e4e7ed;
  border-radius: 5px;
  flex: 1;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #409eff;
  transition: width 0.3s;
}

/* 刷新按钮样式 */
.refresh-icon-button {
  background: none;
  border: none;
  cursor: pointer;
  color: #606266;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s;
}

.refresh-icon-button:hover {
  background-color: #f5f7fa;
  color: #409eff;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.sidebar-menu li {
  padding: 12px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  margin-bottom: 5px;
  transition: all 0.3s;
}

.sidebar-menu li:hover {
  background-color: #e4e7ed;
}

.sidebar-menu li.active {
  background-color: #409eff;
  color: white;
}

.sidebar-menu li i {
  width: 20px;
  text-align: center;
}

.menu-page {
  padding: 20px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

/* 侧边栏收起时的菜单样式 */
.sidebar-collapsed .sidebar-menu li {
  justify-content: center;
  padding: 12px 0;
}

.sidebar-collapsed .sidebar-menu li span {
  display: none;
}

.download-button {
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s;
  white-space: nowrap;
}

.download-available {
  background-color: #409eff;
  color: white;
  border: 1px solid #409eff;
}

.download-available:hover {
  background-color: #3a8ee6;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(64, 158, 255, 0.3);
}

.download-unavailable {
  background-color: #f5f7fa;
  color: #c0c4cc;
  border: 1px solid #e4e7ed;
  cursor: not-allowed;
}

.download-unavailable:hover {
  background-color: #f0f2f5;
}

/* 下载进度条容器样式 */
.download-progress-container {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 200px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  padding: 10px;
  text-align: center;
  z-index: 999;
}

/* 进度条样式 */
.download-progress-container .progress-bar {
  height: 10px;
  background-color: #e4e7ed;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 5px;
}

.download-progress-container .progress-fill {
  height: 100%;
  background-color: #409eff;
  transition: width 0.3s;
}

.mr-1 {
  margin-right: 4px;
}

/* 收放按钮样式 */
.toggle-sidebar-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #606266;
  padding: 4px;
  transition: all 0.3s;
}

.toggle-sidebar-button:hover {
  color: #409eff;
}

.file-card {
  margin-bottom: 10px;
}

.file-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-info {
  color: #999;
  font-size: 12px;
}

/* 响应式布局调整 */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e4e7ed;
  }

  .sidebar-collapsed {
    width: 100%;
    min-height: 50px;
  }

  .task-container {
    padding: 15px;
  }

  .button-group {
    gap: 5px;
  }

  .custom-button {
    padding: 6px 10px;
    font-size: 14px;
  }
}
